malum prohibitum

wrong due to being prohibited

Notes

A legal term meaning that something is only wrong because it is against the law.